import request from '@/axios';

// =====================参数===========================

export const historyFlowList = processInstanceId => request({
  url: '/zzy-flow/process/history-flow-list',
  method: 'get',
  params: {
    processInstanceId,
  },
});

// =====================请假流程===========================

export const leaveProcess = data => request({
  url: '/zzy-desk/process/leave/start-process',
  method: 'post',
  data,
});

export const leaveDetail = businessId => request({
  url: '/zzy-desk/process/leave/detail',
  method: 'get',
  params: {
    businessId,
  },
});
